package com.ambow.Entity;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table
@Cacheable
public class TextBook extends ID implements Serializable{
 private  String ISBN;
 private String name;
 private String author;
 private String revision;
 private String publish;
 private Date publishTime;
 private Double price;
 private String remark;
 	@OneToMany(mappedBy="textBook")
	private Set<DeliverToStation> deliverToStations=new HashSet<DeliverToStation>();
 
 	@OneToMany(mappedBy="textBook")
 	private Set<DeliverToOther> deliverToOthers=new HashSet<DeliverToOther>();
 
 	@OneToMany(mappedBy="textBook")
	private Set<DeliverToTeacher> deliverToTeachers=new HashSet<DeliverToTeacher>();
 
 	@OneToMany(mappedBy="textBook")
	private Set<PackageBook> packageBooks=new HashSet<PackageBook>();//套书信息
 
 	@OneToMany(mappedBy="textBook")
	private Set<Stock> stocks=new HashSet<Stock>();
 
 	@OneToMany(targetEntity=StockCheck.class,mappedBy="textBook")
 	private Set<StockCheck> stockChecks=new HashSet<StockCheck>();
 
 	@OneToMany(targetEntity=StockMove.class,mappedBy="textBook")
 	private Set<StockMove> stockMoves=new HashSet<StockMove>();
 
 	@OneToMany(mappedBy="textBook")
	private Set<StockReceive> stockReceives=new HashSet<StockReceive>();
 	@OneToMany(mappedBy="textBook")
	private Set<Inventory> inventory=new HashSet<Inventory>();
	public String getISBN() {
		return ISBN;
	}

	public Set<Inventory> getInventory() {
		return inventory;
	}

	public void setInventory(Set<Inventory> inventory) {
		this.inventory = inventory;
	}

	public void setISBN(String iSBN) {
		ISBN = iSBN;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getRevision() {
		return revision;
	}

	public void setRevision(String revision) {
		this.revision = revision;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Set<DeliverToStation> getDeliverToStations() {
		return deliverToStations;
	}

	public void setDeliverToStations(Set<DeliverToStation> deliverToStations) {
		this.deliverToStations = deliverToStations;
	}

	public Set<DeliverToOther> getDeliverToOthers() {
		return deliverToOthers;
	}

	public void setDeliverToOthers(Set<DeliverToOther> deliverToOthers) {
		this.deliverToOthers = deliverToOthers;
	}

	public Set<DeliverToTeacher> getDeliverToTeachers() {
		return deliverToTeachers;
	}

	public void setDeliverToTeachers(Set<DeliverToTeacher> deliverToTeachers) {
		this.deliverToTeachers = deliverToTeachers;
	}

	

	/**
	 * @return the packageBooks
	 */
	public Set<PackageBook> getPackageBooks() {
		return packageBooks;
	}

	/**
	 * @param packageBooks the packageBooks to set
	 */
	public void setPackageBooks(Set<PackageBook> packageBooks) {
		this.packageBooks = packageBooks;
	}

	public Set<Stock> getStocks() {
		return stocks;
	}

	public void setStocks(Set<Stock> stocks) {
		this.stocks = stocks;
	}

	public Set<StockCheck> getStockChecks() {
		return stockChecks;
	}

	public void setStockChecks(Set<StockCheck> stockChecks) {
		this.stockChecks = stockChecks;
	}

	public Set<StockMove> getStockMoves() {
		return stockMoves;
	}

	public void setStockMoves(Set<StockMove> stockMoves) {
		this.stockMoves = stockMoves;
	}

	public Set<StockReceive> getStockReceives() {
		return stockReceives;
	}

	public void setStockReceives(Set<StockReceive> stockReceives) {
		this.stockReceives = stockReceives;
	}

	public String getPublish() {
		return publish;
	}

	public void setPublish(String publish) {
		this.publish = publish;
	}
 	

}
